package gold.digger;

/**
 * Created by fanzhenyu02 on 2020/6/27.
 * common problem solver template.
 */
public class LC344 {
    public long startExecuteTime = System.currentTimeMillis();


    public void reverseString(char[] s) {
        int i = 0, j = s.length - 1;
        for (; i <= j; i++, j--) {
            char temp = s[i];
            s[i] = s[j];
            s[j] = temp;
        }
    }


    public static void main(String[] args) throws Exception {
        LC344 an = new LC344();
        char[] arr = {'1', '2', '3'};
        an.reverseString(arr);

        System.out.println("\nanswer total execute time: " + (System.currentTimeMillis() - an.startExecuteTime) + " ms.");
    }
}
